import {Component, OnInit, Input} from '@angular/core';
import {TagData} from '../../../../entity/tag-data.model';

@Component({
  selector: 'app-general-overview-panel',
  templateUrl: './general-overview-panel.component.html',
  styleUrls: ['./general-overview-panel.component.css']
})
export class GeneralOverviewPanelComponent implements OnInit {
  /**
   * 标题
   *
   * @type {string}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  title: string;
  /**
   * 值
   *
   * @type {number}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  value: TagData;
  @Input()
  ratio = 1;
  /**
   * 单位
   *
   * @type {number}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  unit: string;
  /**
   * 颜色
   *
   * @type {string}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  public color: string;


  /**
   * 字体
   *
   * @type {string}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  public family?: string;
  /**
   * 总装机容量矫正
   *
   * @type {number}
   * @memberof GeneralOverviewPanelComponent
   */
  @Input()
  capacityCorrection: number = 0;

  constructor() {
  }

  ngOnInit() {
  }

}


// WEBPACK FOOTER //
// ./src/app/module/monitor/main/general-overview-panel/general-overview-panel.component.ts
